#!/bin/bash

timestamp=$(date +"%Y%m%d-%H%M")
echo $timestamp
source ~/py3env/bin/activate
kill -9 $(ps -ef | grep scrapy | grep -v grep | awk '{ print $2 }')
nohup scrapy crawl book > scrapy_$timestamp.log 2>&1 &
# echo "tail -f douban_book_$timestamp.log"
